package com.example.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author edison
 */
@Service
@Slf4j
public class DemoService {

    public String test(String type) throws InterruptedException {

        log.info("service-3 服务层开始处理请求type: {}",type);
        Thread.sleep(100);
        String result = "{\n" +
                "  \"project\": \"链路测试\",\n" +
                "  \"description\": \"这是一个用于链路测试的示例 JSON \",\n" +
                "  \"tests\": [\n" +
                "    {\n" +
                "      \"name\": \"链路测试1\",\n" +
                "      \"description\": \"执行链路测试的一个测试用例。\"\n" +
                "    }\n" +
                "  ]\n" +
                "}";
        log.info("service-3 服务层处理请求结束");
        return result;

    }

}
